/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-08-01 15:34:22
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-08-01 15:54:45
 * @FilePath: \Gitee实训笔记\day15\Homework\test01\Automobile .java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day15.test01;

public abstract class Automobile {
    private String brand;
    private String plateNumber;
    public Automobile(String brand, String plateNumber) {
        this.brand = brand;
        this.plateNumber = plateNumber;
    }
    public String getBrand() {
        return brand;
    }
    public String getPlateNumber() {
        return plateNumber;
    }
    // 计算租金的抽象方法
    public abstract int getRent(int days);
}
